function queryList(req, res) {

  const result = {
    dataList: [
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "测试部", adminName: "张翼德", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
      {orgName: "开发部", adminName: "关云长", orgDesc: "此处为描述内容"},
    ],
    pageNum: 3,
    pageSize: 10,
    totalCount: 59,
  }
  return res.json(result);
}

function queryTreeOrgList(req, res) {


  const result = [{
    id: 0, orgCode: "0", orgName: "中国平安总公司", parentId: null,
    children: [
      {
        id: 1, orgCode: "01", orgName: "江苏分公司", parentId: 0, remark: "江苏分公司备注说明",
        children: [
          {id: 11, orgCode: "0111", orgName: "上海分公司", parentId: 1, remark: "南京分部"},
          {id: 12, orgCode: "0112", orgName: "南京分部", parentId: 1, remark: "南京分部"},
          {id: 13, orgCode: "0113", orgName: "南京分部", parentId: 1, remark: "南京分部"},
          {id: 14, orgCode: "0114", orgName: "南京分部", parentId: 1, remark: "南京分部"},
        ],
      },
      {
        id: 2, orgCode: "02", orgName: "浙江分公司", parentId: 0, remark: "浙江分公司备注说明",
        children: [
          {id: 21, orgCode: "0111", orgName: "南京分部", parentId: 2, remark: "南京分部"},
          {id: 22, orgCode: "0112", orgName: "南京分部", parentId: 2, remark: "南京分部"},
          {id: 23, orgCode: "0113", orgName: "南京分部", parentId: 2, remark: "南京分部"},
          {
            id: 24, orgCode: "0114", orgName: "南京分部", parentId: 2, remark: "南京分部", children: [
              {id: 2411, orgCode: "0111", orgName: "南京分部", parentId: 24, remark: "南京分部"},
              {id: 2412, orgCode: "0112", orgName: "南京分部", parentId: 24, remark: "南京分部"},
              {id: 2413, orgCode: "0113", orgName: "南京分部", parentId: 24, remark: "南京分部"},

            ],
          },
        ],
      },
      {id: 3, orgCode: "03", orgName: "上海分公司", parentId: 0, remark: "上海分公司备注说明"},
      {id: 4, orgCode: "04", orgName: "安徽分公司", parentId: 0, remark: "安徽分公司备注说明"},
    ],
  }];

  return res.json(result);
}


export default {
  'POST /api/org/queryList': queryList,
  'POST /api/org/queryTreeList': queryTreeOrgList,
  // 'POST /api/myApply/queryList': myApplyList,
  // 'POST /api/myAudit/queryList': myAuditList,
  // 'POST /api/optRecord/queryList': optRecordList,
  // 'POST /api/dowload/queryList': dowloadList,
  // 'POST /api/recycle/queryList': recycleList,

};
